﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class NetManager : Singleton<NetManager> {

    private MsgDispatcher msgDispatcher;
    private TcpNetwork tcpNetwork;

    public MsgDispatcher MsgDispatcher
    {
        get
        {
            return msgDispatcher;
        }

        set
        {
            msgDispatcher = value;
        }
    }

    private void Awake()
    {
        Init();
    }
    // Use this for initialization
    void Start () {


    }
	
	// Update is called once per frame
	void Update () {
		
	}
    protected override void  Init() {
        MsgDispatcher = new MsgDispatcher();
        tcpNetwork = new TcpNetwork();
        
    }
}
